<template>
  <div class="content">
    <div class="detail">附件详情</div>
    <el-button @click="currentView = 'Pic'">缩略图</el-button>
    <el-button @click="currentView = 'ListShow'">列表显示</el-button>
    <keep-alive>
      <component :is="currentView"> </component>
    </keep-alive>
  </div>
</template>

<script>
import Pic  from '../../../components/AccessoryDetail/Pic.vue'
import ListShow from '../../../components/AccessoryDetail/ListShow.vue'
export default {
  name: "Accessory",
  components:{
    Pic,
    ListShow
  },
  data() {
    return {
      currentView: "Pic",
    };
  },

};
</script>

<style lang='scss' scoped>
.detail{

}
</style>